export default function usePartState(initValue) {
	const [state, setAllState] = React.useState(initValue);
	function setPartState(value) {
		setAllState(function(oldState) {
			return { ...oldState, ...value };
		});
	}
	return [state, setPartState];
}
